package com.ruoyi.db.ums.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;

/**
 * 浏览足迹对象 ums_footprint
 *
 * @author ruoyi
 * @date 2020-04-22
 */

@ApiModel("浏览足迹实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class UmsFootprint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("浏览足迹ID")
    private Long id;

    @ApiModelProperty("用户表的用户ID")
    @Excel(name = "用户表的用户ID")
    @NotBlank(message = "用户表的用户ID不能为空")
    private Long userId;

    @ApiModelProperty("浏览商品ID")
    @Excel(name = "浏览商品ID")
    @NotBlank(message = "浏览商品ID不能为空")
    private Long goodsId;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;
    private LocalDateTime updateTime;

}
